using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class tbs_App_Gt_claimMap : EntityTypeConfiguration<tbs_App_Gt_claim>
    {
        public tbs_App_Gt_claimMap()
        {
            // Primary Key
            this.HasKey(t => t.type);

            // Properties
            this.Property(t => t.type)
                .IsRequired()
                .HasMaxLength(34);

            this.Property(t => t.Bill__)
                .HasMaxLength(8);

            this.Property(t => t.batch)
                .IsFixedLength()
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("tbs_App_Gt_claim");
            this.Property(t => t.type).HasColumnName("type");
            this.Property(t => t.Bill__).HasColumnName("Bill_#");
            this.Property(t => t.batch).HasColumnName("batch");
            this.Property(t => t.Approval_Date).HasColumnName("Approval_Date");
            this.Property(t => t.Claim_amount).HasColumnName("Claim_amount");
            this.Property(t => t.Approved_amount).HasColumnName("Approved_amount");
        }
    }
}
